#include <glib.h>
#include <stdio.h>
#include <unistd.h>
#include "common.h"

int main(int argc,char *argv[])
{
	gulong micrsnd;
	GTimer *timer = g_timer_new();
	g_timer_start(timer);
	sleep(3);
	g_timer_stop(timer);
	printf("Elapsed:%f\n", g_timer_elapsed(timer, NULL));
	g_timer_elapsed(timer, &micrsnd);
	printf("microseconds: %ld\n", micrsnd);
	g_timer_destroy(timer);
	return 0;
} 
